<!DOCTYPE html>
<html>
<header class="mui-bar mui-bar-nav">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">调用设备信息</h1>
</header>
<div class="mui-content mui-content-padded">
    <button type="button" id="btnDail" class="mui-btn mui-btn-blue mui-btn-block">打电话</button>
    <button type="button" id="btnBeep" class="mui-btn mui-btn-blue mui-btn-block">蜂鸣</button>
    <button type="button" id="btnVib" class="mui-btn mui-btn-blue mui-btn-block">震动</button>
    <button type="button" id="btnNet" class="mui-btn mui-btn-blue mui-btn-block">网络信息</button>
    <button type="button" id="btnOs" class="mui-btn mui-btn-blue mui-btn-block">OS</button>
</div>
<script src='http://libs.baidu.com/jquery/1.8.3/jquery.min.js'></script>
<script src="js/mui.min.js"></script>
<script type="text/javascript">
    // 打电话
    $("#btnDail").bind('tap', function () {
        plus.device.dial('1865425425', true);
    });
    // 蜂鸣
    $("#btnBeep").bind('tap', function () {
        plus.device.deep();
    });
    // 震动
    $("#btnVib").bind('tap', function () {
        plus.device.vibrate();
    });
    //网络信息
    $("#btnNet").bind('tap', function () {
        mui.alert(plus.networkinfo.getCurrentType());
    });
    //OS
    $("#btnOs").bind('tap', function () {
        mui.alert(plus.os.name());
    });
</script>
</body>
</html>